<?php session_start();
/**
* @package		ReservatieComponent voor ouderavonden.
* @copyright	Copyright (C) 2008 Kristof Beckers. All rights reserved.
* @Version		0.1
* @license		GNU/GPL, see LICENSE.php
**/
?>

<head>
<link rel="stylesheet" href="../../css/template_css.css" type="text/css"/> 
</head>
<?php 
include ("../../include/config.php");
require_once ("../../include/db.php");
include ("../../include/header.php");

if(isset($_SESSION['myusername'])){
	if ($_SESSION['admin'] == "$adminid") {
?>
<body>
<div align="center"><img src="<?php echo "../$logo" ; ?>" /><br><br />
<a href="../index.php"/><img src="<?php echo "../$home" ; ?>" border="0"/></a>


<?php	
$lknaam = $_POST['LKnaam'];
$LKID = $_POST['LKID'];
$Klastitularis = $_POST['Klastitularis'];
$Klas = $_POST['Klas'];
$Vak = $_POST['Vak'];
$Lokaal = $_POST['Lokaal'];

$query = "INSERT INTO $tbvak ( Klas , Vak , LeerkrachtID , Leerkrachtnaam , Klastitularis , Lokaal )

VALUES ( '$Klas' , '$Vak' , '$LKID' , '$lknaam' , '$Klastitularis' , '$Lokaal')";

echo "<p class='bodytext'> <br><br>
		Alles is toegevoegd aan de database.<br><br>
		<a href='opdrachten.php'>Ga verder</a></p>";

mysql_query($query) or die(mysql_error());


mysql_close($conn);
}}
else {
header("location:../index.php");
}
?>
</div>
</body>